import Layout from "@/layout";

const systemRouter =
    // 系统管理
    {
        path: "/system",
        component: Layout,
        name: "System",
        meta: {
            title: "系统管理",
            noCache: true,
            icon: "user",
        },
        children: [
            {
                path: "index",
                component: () => import("@/views/system/user"),
                name: "User",
                meta: {
                    title: "User",
                    noCache: true,
                },
            },
            {
                path: "role",
                component: () => import("@/views/system/role"),
                name: "Role",
                meta: {
                    title: "Role",
                },
            },
            {
                path: "menu",
                component: () => import("@/views/system/menu"),
                name: "Menu",
                meta: {
                    title: "Menu",
                },
            },
            {
                path: "button",
                component: () => import("@/views/system/button"),
                name: "Button",
                meta: {
                    title: "Button",
                },
            },
        ],
    };

export default systemRouter;
